package com.leejxx.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.leejxx.model.common.dto.ResponseResult;
import com.leejxx.model.wemedia.dtos.NewsAuthDto;
import com.leejxx.model.wemedia.dtos.WmNewsDto;
import com.leejxx.model.wemedia.dtos.WmNewsPageReqDto;
import com.leejxx.model.wemedia.pojos.WmNews;

/**
 * @Author LeeJx
 * @ClassName WmNewsService
 * @Description TODO
 * @date 2021/2/25 12:30
 * @Version 1.0
 */
public interface WmNewsService extends IService<WmNews> {
    ResponseResult findAll(WmNewsPageReqDto wmNewsPageReqDto);

    ResponseResult saveNews(WmNewsDto wmNews, Short isSubmit);

    ResponseResult findWmNewsById(Integer id);

    ResponseResult delNews(Integer id);

    ResponseResult downOrUp(WmNewsDto dto);

    ResponseResult findList(NewsAuthDto dto);

    ResponseResult findWmNewsVo(Integer id);

    ResponseResult updateStatus(Short status, NewsAuthDto dto);
}
